package com.example.demo.mapper;


import com.example.demo.pojo.InventoryVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface InventoryMapper {
    InventoryVO selectById(Integer id);
    int updateStock(@Param("id") Integer id, @Param("stock") Integer stock);

    List<InventoryVO> selectGoods(Map<String, Object> params);
}